package com.wd.elec.mapper;

import java.util.List;
import com.wd.elec.domain.AttendHoliday;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 假期配置Mapper接口
 * 
 * @author liumingkun
 * @date 2023-11-08
 */
@Mapper
@Repository
public interface AttendHolidayMapper 
{
    /**
     * 查询假期配置
     * 
     * @param holidayId 假期配置主键
     * @return 假期配置
     */
     AttendHoliday selectAttendHolidayByHolidayId(Long holidayId);

    /**
     * 查询假期配置列表
     * 
     * @param attendHoliday 假期配置
     * @return 假期配置集合
     */
     List<AttendHoliday> selectAttendHolidayList(AttendHoliday attendHoliday);

    /**
     * 新增假期配置
     * 
     * @param attendHoliday 假期配置
     * @return 结果
     */
     int insertAttendHoliday(AttendHoliday attendHoliday);

    /**
     * 修改假期配置
     * 
     * @param attendHoliday 假期配置
     * @return 结果
     */
     int updateAttendHoliday(AttendHoliday attendHoliday);

    /**
     * 删除假期配置
     * 
     * @param holidayId 假期配置主键
     * @return 结果
     */
     int deleteAttendHolidayByHolidayId(Long holidayId);

    /**
     * 批量删除假期配置
     * 
     * @param holidayIds 需要删除的数据主键集合
     * @return 结果
     */
     int deleteAttendHolidayByHolidayIds(Long[] holidayIds);
}
